<?php

return array(
    'router' => array(
        'routes' => array(
            'ajax-user-login' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/user-ajax/dang-nhap',
                    'defaults' => array(
                        'controller' => 'ajax-user-controller',
                        'action' => 'login'
                    )
                )
            ),
            'ajax-login-success' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/user-ajax/login-success',
                    'defaults' => array(
                        'controller' => 'ajax-user-controller',
                        'action' => 'login-success'
                    )
                )
            ),
            'ajax-logout' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/user-ajax/logout',
                    'defaults' => array(
                        'controller' => 'ajax-user-controller',
                        'action' => 'logout'
                    )
                )
            ),
            'ajax-user-register' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/user-ajax/dang-ky',
                    'defaults' => array(
                        'controller' => 'ajax-user-controller',
                        'action' => 'register'
                    )
                )
            ),
            'ajax-confirm-email' => array(
                'type' => 'Segment',
                'options' => array(
                    'route' => '/user-ajax/confirm-email[/:token]',
                    'defaults' => array(
                        'controller' => 'ajax-user-controller',
                        'action' => 'confirm-email'
                    )
                )
            ),
            'ajax-register-success' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/user-ajax/register-success',
                    'defaults' => array(
                        'controller' => 'ajax-user-controller',
                        'action' => 'register-success'
                    )
                )
            ),
            'ajax-confirm-success' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/user-ajax/confirm-success',
                    'defaults' => array(
                        'controller' => 'ajax-user-controller',
                        'action' => 'confirm-success'
                    )
                )
            ),
            'ajax-confirm-error' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/user-ajax/confirm-error',
                    'defaults' => array(
                        'controller' => 'ajax-user-controller',
                        'action' => 'confirm-error'
                    )
                )
            ),
            'ajax-test-mail' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/user-ajax/test-mail',
                    'defaults' => array(
                        'controller' => 'ajax-user-controller',
                        'action' => 'test-send-mail'
                    )
                )
            )
        )
    ),
    'controllers' => array(
        'invokables' => array(
            'ajax-user-controller' => 'UserAjax\Controller\UserController'
        )
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            __DIR__ . '/../view'
        )
    )
);
